package com.simoniu.mp.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@TableName("id_card")

//身份证类
//IdCard ==>id_card
public class IdCard implements Serializable,Cloneable  {

    @Id
    @Column(length = 18) //中国的身份证号码是18位的。
    private String pid; //身份证号码
    private String province;//省份

}
